package org.jeecg.modules.demo.demo.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import java.util.Objects;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jetbrains.annotations.NotNull;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import static java.util.Objects.requireNonNull;

/**
 * @Description: pu_contract
 * @Author: jeecg-boot
 * @Date:   2021-11-24
 * @Version: V1.0
 */
@Data
@TableName("pu_contract")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="pu_contract对象", description="pu_contract")
public class PuContract implements Comparable<PuContract> {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**合同编号*/
	@Excel(name = "合同编号", width = 15)
    @ApiModelProperty(value = "合同编号")
    private String puConNo;
	/**供应商编号*/
	@Excel(name = "供应商编号", width = 15)
    @ApiModelProperty(value = "供应商编号")
    private String pjsNo;
	/**采购订单号*/
	@Excel(name = "采购订单号", width = 15)
    @ApiModelProperty(value = "采购订单号")
    private String poOrder;
	/**名称*/
	@Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private String custName;
	/**地址*/
	@Excel(name = "地址", width = 15)
    @ApiModelProperty(value = "地址")
    private String custAdress;
	/**数量*/
	@Excel(name = "数量", width = 15)
    @ApiModelProperty(value = "数量")
    private Double custTotal;
	/**金额*/
	@Excel(name = "金额", width = 15)
    @ApiModelProperty(value = "金额")
    private Double custAmount;
	/**开户银行*/
	@Excel(name = "开户银行", width = 15)
    @ApiModelProperty(value = "开户银行")
    private String supBank;
	/**银行账户*/
	@Excel(name = "银行账户", width = 15)
    @ApiModelProperty(value = "银行账户")
    private String supBanknum;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**板块名称*/
	@Excel(name = "板块名称", width = 15)
    @ApiModelProperty(value = "板块名称")
    private String sectorname;
	/**品名*/
	@Excel(name = "品名", width = 15)
    @ApiModelProperty(value = "品名")
    private String pinp;
	/**买受单位名称*/
	@Excel(name = "买受单位名称", width = 15)
    @ApiModelProperty(value = "买受单位名称")
    private String maisdwmc;
	/**出卖单位名称*/
	@Excel(name = "出卖单位名称", width = 15)
    @ApiModelProperty(value = "出卖单位名称")
    private String chumdwmc;
	/**合同编号*/
	@Excel(name = "合同编号", width = 15)
    @ApiModelProperty(value = "合同编号")
    private String hetbh;
    /**
     生成采购销售订单状态
     */
    @Excel(name = "订单状态", width = 15)
    @ApiModelProperty(value = "订单状态")
    @Dict(dicCode = "htzt")
    private String status;

    private String transport;

    private String zhilzbjson;

    private String zhilzb;

    private String unit;
    //所属项目
    private String project;
    /**发站名称*/
    @Excel(name="发站名称",width=15)
    private java.lang.String fazbm;
    /**到站名称*/
    @Excel(name="到站名称",width=15)
    private java.lang.String daozbm;

    private String tradecode;

    private String hetlrbh;

    private String qysj;

  @Override
  public int compareTo(PuContract o) {
    return o.getCreateTime().compareTo(this.createTime);
      }
  }

